package com.cn.jinl.api;

import com.cn.jinl.domain.OnDutyPerson;

import java.util.List;

public interface IOnDutyPersonService {

    List<OnDutyPerson> getOnDutyPersonList()throws Exception;

    String getOnDutyPersonByDutyAndWhite(String dutyDay,String whiteDay)throws Exception;
    String getOnDutyLockedByDutyAndWhite(String dutyDay,String whiteDay)throws Exception;

    String addOnDutyPerson(String dutyDay)throws Exception;

    String updateOnDutyPerson(OnDutyPerson onDutyPerson)throws Exception;
    String updateOnDutyPersonLocked(String dutyDay,String whiteDay)throws Exception;

    String updateOnDutyPersonByDay(String userId,String userName,String dutyDay,String whiteDay)throws Exception;

    String deleteOnDutyPersonByDay(String dutyDay)throws Exception;
}
